![]() |
CustomAndroidAPI 1.44
|
Public Member Functions | |
| Boolean | SetVariable (String var, Object value) throws CustomException |
| Set the value of an internal "parameter". | |
| Object | GetVariable (String var) throws CustomException |
| Get the value of an internal "parameter". | |
| CustomPrinter | getPrinterDriverBT (BluetoothDevice printer) throws CustomException |
| CustomPrinter | getPrinterDriverETH (String printerIpAddr) throws CustomException |
| CustomPrinter | getPrinterDriverETH (String printerIpAddr, int printerIpPort) throws CustomException |
| CustomPrinter | getPrinterDriverCOM (String devPort) throws CustomException |
| CustomPrinter | getPrinterDriverUSB (UsbDevice device, Context cobj) throws CustomException |
| CustomPrinter | getPrinterDriverBLE (BluetoothDevice printer, Context cobj) throws CustomException |
Static Public Member Functions | |
| static String | getAPIVersion () |
| static void | EnableLogAPI (boolean enable) |
| static void | ForceCheck2ndInterfaceAvailable (boolean enable) |
| static BluetoothDevice[] | EnumBluetoothDevices () throws CustomException |
| static String[] | EnumEthernetDevices (int searchTimeSpan, Context cobj) throws CustomException |
| static UsbDevice[] | EnumUsbDevices (Context cobj) throws CustomException |
| static BluetoothDevice[] | EnumBluetoothLeDevices (int searchTimeSpan) throws CustomException |
Factory class to get the printer driver class for supported model id
|
inlinestatic |
Enable / disable the API log (default disabled).
|
inlinestatic |
Get the list of CUSTOM Bluetooth devices.
| CustomException | if Bluetooth is not enable or is not supported |
|
inlinestatic |
Get the list of CUSTOM Bluetooth Low Energy (BLE) devices.
| searchTimeSpan | Bluetooth Low Energy (BLE) devices time span to search the BLE devices. Usually to find all the devices, this value must be 4000 (4sec) or higher. |
| CustomException | if Bluetooth Low Energy (BLE) is not enable or is not supported |
|
inlinestatic |
Get the list of CUSTOM WiFi/Ethernet devices.
| searchTimeSpan | time span to search the WiFi/Ethernet devices |
| cobj | Context object |
| CustomException |
|
inlinestatic |
Get the list of CUSTOM USB Printer devices.
| cobj | Context object |
| CustomException |
|
inlinestatic |
Enable / disable the check, at the open of the connection, if a 2nd communication interface is available (default enable).
|
inlinestatic |
Current API version
| CustomException |
|
inline |
Connects to Bluetooth Low Energy (BLE) Printer device.
| printer | device to connect |
| cobj | Context object |
| CustomException | if Bluetooth Low Energy (BLE) device is not printer or printer model is not supported |
|
inline |
Connects to Bluetooth Printer device.
| printer | device to connect |
| CustomException | if Bluetooth device is not printer or printer model is not supported |
|
inline |
Connects to Com/Serial Printer device.
| devPort | String value with dev address of device to connect (the dev must be set with "666" permissions. Example: "chmod 666 /dev/ttyS0") |
| CustomException | if open port port error, device is not printer or printer model is not supported |
|
inline |
Connects to WiFi/Ethernet Printer device.
| printerIpAddr | String value with IP ADDRESS of device to connect (connect of prn port 9100) |
| CustomException | if WiFi/Ethernet device is not printer or printer model is not supported |
|
inline |
Connects to WiFi/Ethernet Printer device.
| printerIpAddr | String value with IP ADDRESS of device to connect |
| printerIpPort | integer value with IP PORT of device to connect |
| CustomException | if WiFi/Ethernet device is not printer or printer model is not supported |
|
inline |
Connects to Usb Printer device.
| device | USB object of device to connect |
| cobj | Context object |
| CustomException | if USB device is not printer or printer model is not supported |
|
inline |
Get the value of an internal "parameter".
| var | Variable ID |
| CustomException |
|
inline |
Set the value of an internal "parameter".
| var | Variable ID |
| value | Variable value |
| CustomException |